<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/1/19
  Time: 13:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>厨师表</title>
</head>
<body>
<a href="<%=request.getContextPath()%>/insertCook.jsp">新增</a>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>ID</td>
        <td>姓名</td>
        <td>性别</td>
        <td>操作</td>
    </tr>

    <c:forEach var="item" items="${cook}">
        <tr>

            <td>${item.id}</td>
            <td>${item.name}</td>
            <td>${item.gender}</td>

            <td>
                <a href="<%=request.getContextPath()%>/cook/selectById?id=${item.id}">修改</a>
                <a href="<%=request.getContextPath()%>/cook/delete?id=${item.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
